package com.huikeportal.service;

import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.sf.json.JSONArray;

import com.huikeportal.model.BrandAnalysisGraphData;
import com.huikeportal.model.MessageCommon;
import com.huikeportal.model.RankingData;
import com.huikeportal.model.ReportGraphData;
import com.huikeportal.model.ReportSiteDay;
import com.huikeportal.model.SiteAllInfo;
import com.huikeportal.model.UserInfo;
import com.huikeportal.model.UserSiteHistory;


/** 
 * 2015-9-7 
 * 客流统计-全局分析-service
 * author:wenyp 
 */
public interface BrandAnalysisService {
	
	
	public MessageCommon hasSquareAuthor(UserInfo userInfo) throws Exception;
	
	/**
	 * 获取散点图数据
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<HashMap<String, Object>> getScatterGraphData(HashMap<String, Object> map)throws Exception ;
	
	/**
	 * 查询排行榜数据
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public HashMap<String, Object> getPaihangGraphData(HashMap<String, Object> map)throws Exception;
	/**
	 * 查询图表数据
	 * @param map
	 * @return List<ReportGraphData>
	 * @throws ParseException
	 */
	public List<HashMap<String, Object>> getGraphData(HashMap<String, Object> map)  throws Exception;
	
	/**
	 * 查询排行榜数据
	 * @param map
	 * @return List<ReportGraphData>
	 * @throws ParseException
	 */
	public StringBuffer getRanking(HashMap<String, Object> Map) throws Exception;
	
	/**
	 * 查询排行榜数据
	 * @param map
	 * @return List<ReportGraphData>
	 * @throws ParseException
	 */
	public StringBuffer getSelectedRanking(HashMap<String, Object> Map) throws Exception;
	
	/**
	 * @author
	 * @return void 
	 * @param UserSiteHistory
	 * 修改记录-用户访问记录siteId
	 * 
	 */
    public  List<String> getDatesBetweenTwoDate(String begin, String end);
    
    /**
	 * 根据type获取指标计算公式
	 * @param int
	 * @return HashMap
	 * 
	 */
    public HashMap<String,Object> getCalret(int type);
    
    /**
     * 根据id查询平牌中文名称
     * @param str
     * @return
     */
    public String getSiteName(String str);
    
}
